package com.aaa.day113.demo3;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月03日10:28
 */
public class Test {
    public static void main(String[] args) {
        Operator operator=arr -> arr.length;
        fun(operator);
    }
    public static void fun(Operator operator){
        int sum[]={22,44,55};
        int sum1 =operator.getSum(sum);
        System.out.println(sum1);
    }


}
interface Operator{
    public int getSum(int[] arr);
}